package com.bm.server.dao;

import com.bm.server.dto.CupRDto;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * YoungMan, may the force be with you.
 *
 * @Author: 吃个小布丁吧
 * @Date: 2022/07/19/16:53
 */
public interface CupRDao {
    @Select("SELECT t_cup.cunname AS c, t_room.roomid AS r FROM t_cup,t_room WHERE t_cup.cid = t_room.roomid")
   /* @Select("SELECT t_cup.cupname, t_room.roomid FROM t_cup,t_room WHERE t_cup.cid = t_room.roomid")*/
    List<CupRDto> selectAll();
}
